package com.xdq.spring.model;

import java.awt.*;
import java.io.Serializable;

public class Engine  implements Serializable {

    /**
     * 品牌
     */
    private String brand;

    /**
     * 材料
     */
    private String material;

    private String createDate;

    private String serialNo;

    private Integer id;

    public Engine() {
        System.out.println("Engine被实例化了");
    }

    //其他零部件

    public void fire(){
        System.out.println("引擎启动了");
    }

    public void stop(){
        System.out.println("引擎熄火了");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Engine{" +
                "brand='" + brand + '\'' +
                ", material='" + material + '\'' +
                ", createDate='" + createDate + '\'' +
                ", serialNo='" + serialNo + '\'' +
                ", id=" + id +
                '}';
    }
}
